package org.brownflat.watergate.scm;

import java.util.Iterator;
import java.util.List;

/**
 * <p>&copy Rupert Jones 2012</p>
 *
 * @author rup
 */
public interface Revisions extends Iterable<Revision> {
    boolean hasRevisionBefore(long revisionNumber);
    Revision getRevisionBefore(long revisionNumber);
    Revision getRevision(long revision);
    List<Revision> getRevisions();
    Revisions getRevisionsFromTo(long from, long to);
    Iterator<Revision> iterator();
    boolean isEmpty();
    Revision getFirstRevision();
}
